home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmTextFieldReplace.z / XmTextFieldReplace
Encoding:
Text File  |  2003-11-18  |  3.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeee((((3333XXXX))))    UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV    XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeee((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_T_e_x_t_F_i_e_l_d_R_e_p_l_a_c_e - A TextField function that replaces part
  10.       of a text string
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       #include <Xm/TextF.h>
  14.  
  15.       void XmTextFieldReplace (wwwwiiiiddddggggeeeetttt,,,, ffffrrrroooommmm____ppppoooossss,,,, ttttoooo____ppppoooossss,,,, vvvvaaaalllluuuueeee)
  16.            _W_i_d_g_e_t       wwwwiiiiddddggggeeeetttt;
  17.            _X_m_T_e_x_t_P_o_s_i_t_i_o_nffffrrrroooommmm____ppppoooossss;
  18.            _X_m_T_e_x_t_P_o_s_i_t_i_o_nttttoooo____ppppoooossss;
  19.            _c_h_a_r       **** vvvvaaaalllluuuueeee;
  20.  
  21.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.       _X_m_T_e_x_t_F_i_e_l_d_R_e_p_l_a_c_e replaces part of the text string in the
  23.       TextField widget.  The character positions begin at zero and
  24.       are numbered sequentially from the beginning of the text.
  25.  
  26.       An example text replacement would be to replace the second
  27.       and third characters in the text string.  To accomplish
  28.       this,    the parameter ffffrrrroooommmm____ppppoooossss must be 1 and ttttoooo____ppppoooossss must be 3.
  29.       To insert a string after the fourth character, both
  30.       parameters, ffffrrrroooommmm____ppppoooossss and ttttoooo____ppppoooossss, must    be 4.
  31.  
  32.       This routine calls the widget's _X_m_N_v_a_l_u_e_C_h_a_n_g_e_d_C_a_l_l_b_a_c_k and
  33.       verification callbacks, either _X_m_N_m_o_d_i_f_y_V_e_r_i_f_y_C_a_l_l_b_a_c_k or
  34.       _X_m_N_m_o_d_i_f_y_V_e_r_i_f_y_C_a_l_l_b_a_c_k_W_c_s, or both.    If both    verification
  35.       callback lists are registered, the procedures    of the
  36.       _X_m_N_m_o_d_i_f_y_V_e_r_i_f_y_C_a_l_l_b_a_c_k list are executed first and the
  37.       resulting data is passed to the _X_m_N_m_o_d_i_f_y_V_e_r_i_f_y_C_a_l_l_b_a_c_k_W_c_s
  38.       callbacks.
  39.  
  40.       wwwwiiiiddddggggeeeetttt
  41.            Specifies the TextField widget ID
  42.  
  43.       ffffrrrroooommmm____ppppoooossss
  44.            Specifies the start position of the text    to be replaced
  45.  
  46.       ttttoooo____ppppoooossss
  47.            Specifies the end position of the text to be replaced
  48.  
  49.       vvvvaaaalllluuuueeee
  50.            Specifies the character string value to be added    to the
  51.            text widget
  52.  
  53.       For a    complete definition of TextField and its associated
  54.       resources, see _X_m_T_e_x_t_F_i_e_l_d(_3_X).
  55.  
  56.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  57.       _X_m_T_e_x_t_F_i_e_l_d(_3_X).  _X_m_T_e_x_t_F_i_e_l_d_R_e_p_l_a_c_e_W_c_s(_3_X).
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.